package com.lu.constants;

/**
 * Http状态常量
 * @author xiaolu
 * @version 1.0
 * @date 2020/5/27 17:58
 */
public enum HttpStatusEnum {

    OK(200,"登录成功"),
    OKK(200,"修改成功"),
    OKKK(200,"提交成功"),
    BAD_REQUEST(400,"请求参数有误"),
    UNAUTHORIZED(401,"登录失败"),
    INTERNAL_SERVER_ERROR(500,"服务器遇到了一个未曾预料的状况"),
    BAD_GATEWAY(502,"从上游服务器接收到无效的响应");

    // 状态码
    private final int status;
    // 输出内容
    private final String content;

    HttpStatusEnum(int status, String content) {
        this.status = status;
        this.content = content;
    }

    public int getStatus() {
        return status;
    }

    public String getContent() {
        return content;
    }
}
